import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class sub1 here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class sub1 extends Mundo
{

    /**
     * Constructor for objects of class sub1.
     * 
     */
    private Cartman cart;
    public sub1(Cartman car)
    {    
        
        super(1500, 600, 1,false); 
        cart=car;
        addObject(cart,63,333);
        prepare();
    }
    
    public void prepare()
    {
       
        setPaintOrder(Enemigo.class,Letrero.class,Escopeta.class,Ametralladora.class,Pistola.class,Cartman.class,casaCartman.class,Casa1.class,cerca.class); 
        Mueble m1= new Mueble(0,0);
        addObject(m1,373,300);
        
        Mueble m2=new Mueble(0,1);
        addObject(m2,100,250);
        
        Utileria cuadro=new Utileria(0);
        addObject(cuadro,200,225);
        
        Huevo h=new Huevo();
        addObject(h,400,340);
        
        Utileria u1=new Utileria(1);
        addObject(u1,550,315);
        
        Utileria u2=new Utileria(1);
        addObject(u2,800,315);
        
        Caja caj=new Caja(0);
        addObject(caj,570,315);
    }
    public Cartman getCartman(){
       return cart;
    }
}
